﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZWZ.Web.Codes.UC
{
    [ControlAttr.ControlType("网站头模块", "/WebCtr_Icon/1.png", enum_CtrViewType.页面唯一)]
    public class CtrHeader : Base.ControlBase
    {
        private int _height = 50;
        private bool _showSetHomePage = true;
        private bool _showViewers = true;
        private bool _showWeather = true;
        private string _backimg = string.Empty;
        private bool _showtitle = true;
        private string _webtitle = string.Empty;
        private string _webtitle_font = string.Empty;
        private string _webtitle_color = string.Empty;

        [ControlAttr.ControlProperty(enum_AttrType.Number, enum_AttrGroup.基本属性, "高度")]
        public int Height { get { return _height; } set { _height = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示收藏按钮")]
        public bool ShowSetHomePage { get { return _showSetHomePage; } set { _showSetHomePage = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示访客数")]
        public bool ShowViewers { get { return _showViewers; } set { _showViewers = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示天气")]
        public bool ShowWeather { get { return _showWeather; } set { _showWeather = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Image, enum_AttrGroup.基本属性, "背景图片")]
        public string BackGroundImage { get { return _backimg; } set { _backimg = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Bool, enum_AttrGroup.基本属性, "显示网站标题")]
        public bool ShowWebTitle { get { return _showtitle; } set { _showtitle = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Text, enum_AttrGroup.基本属性, "网站标题")]
        public string WebTitle { get { return _webtitle; } set { _webtitle = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Font, enum_AttrGroup.基本属性, "标题字体")]
        public string WebTitle_Font { get { return _webtitle_font; } set { _webtitle_font = value; } }

        [ControlAttr.ControlProperty(enum_AttrType.Color, enum_AttrGroup.基本属性, "标题颜色")]
        public string WebTitle_Color { get { return _webtitle_color; } set { _webtitle_color = value; } }
    }
}
